package chap6.string;

public class SubstringAndConcatExample {

	public static void main(String[] args) {
		
	
	String x = "0123456789"; // as if by magic, the value
	// of each char
	// is the same as its index!
	/*System.out.println(x.length());
	System.out.println( x.substring(5) ); // output is "56789"
	System.out.println( x.substring(0, 9)); // output is "567"
	*/String str = "";
	
	String y = "vivek";
	str= str.concat(y).concat(",");
	

	System.out.println(str);
	
	}
}
